<?php
$template = new ui_html();
$template->add(new ui_head(),new ui_body());
$template->nodes[0]->add(new ui_base());
$template->nodes[0]->add(new ui_meta('Content-Type','text/html; charset=utf-8'));
$template->nodes[0]->add(new ui_title())->last->position('title');
$template->nodes[0]->position('head');
$vbox = new ui_layout_vbox(array(60,'*',22));
$vbox->areas[0]->position('nav1');
$vbox->areas[1]->add(new ui_layout_hbox(array(130,'*',90)));
$vbox->areas[1]->last->areas[0]->position('left');
$vbox->areas[1]->last->areas[1]->add(new ui_h1())->last->position('title');
$vbox->areas[1]->last->areas[1]->position('center');
$vbox->areas[1]->last->areas[2]->position('right');
$vbox->areas[2]->position('footer');
$template->nodes[1]->add($vbox);
?>